﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using WebNext.Domain.Entities;

namespace WebNext.DataAccess.Mappings
{
	public class AuthorInfoMap : EntityMap<AuthorInfo>
	{
		public AuthorInfoMap()
		{
			this.Table("AuthorInfo");
			this.Map(e => e.Name);
			this.Map(e => e.Description);
			this.Map(e => e.ImageUri);
			this.Map(e => e.SocialNetwork);
			this.Map(e => e.CustomScript);
			this.Map(e => e.CultureId).CustomType<CultureId>();
		}
	}
}
